define(['common/js/boss-frame-angular-dev-0.1'],function(){
	filterModule.filter("trustAsHtml",["$sce",function($sce){
		return function(text){
			return $sce.trustAsHtml(text);
		}
	}]);
	filterModule.filter('fillingIn', function() {
		return function(input,replaceStr){
			if(input){
				return input;
			}

			return replaceStr;
		}
	});

	filterModule.filter('substring', function() {
		return function(input,maxlength){
			if(!input || input.length <= maxlength){
				return input;
			}

			return input.substr(0,maxlength) + "...";
		}
	});
	
	
	filterModule.filter('decimalPoint', function() {
		return function(price,digit){
			if(digit == null||digit==''){
				digit = 2;
			}
			return (parseFloat(price)+0.00).toFixed(digit)
		}
	});

	filterModule.filter('CardID', function() {
		return function(input,start,end){
			if(input==null){
				return null;
			}
			var intputArray=input.split('');
			var hide=[];

			for(var i=0;i<intputArray.length-(start+end);i++){
				hide[i]='*';
			}
			intputArray.splice(start,intputArray.length-(start+end),hide.join(''));
			var intputStr=intputArray.join('');

			return intputStr;
		}
	});
	
});